#define _CRT_SECURE_NO_WARNINGS 1
#include<iostream>
#include<cstdlib>
 struct ListNode {
	int val;
	struct ListNode* next;
	
};
 struct ListNode* removeElements(struct ListNode* head, int val) {
     struct ListNode* newNode = NULL;
     while (head)
     {
         if (head->val == val)
             head = head->next;
         else break;
     }
     struct ListNode* prev = newNode = head;
     if (!head)
         head = head->next;
     while (head)
     {
         if (head->val != val)
         {
             prev->next = head;
             prev = head;
         }
         head = head->next;
     }
     prev->next = NULL;
     return newNode;
 }
 int main()
 {
     int a = 2;
     int* b = &a;
     if (!b)
         printf("%d", a);
     return 0;
}